<form name="frmlist" id="frmlist" action="<?php echo $this->site['base_url']?>admin_clients_global/search" method="post">
<table class="title" cellspacing="0" cellpadding="0">
  <tr>
    <td class="title_label">Client&nbsp;>>&nbsp;<?php echo Kohana::lang('clients_lang.tt_page_global')?></td>
    <td class="title_button">
    <button type="button" name="btn_new" class="button new" onclick="javascript:location.href='<?php echo $this->site['base_url']?>admin_clients_global/create'"/>
    <span><?php echo Kohana::lang('clients_lang.btn_new_client_global')?></span>
    </button>
    </td>
  </tr>
</table>
<table class="list" cellspacing="1" cellpadding="5">
  <tr class="list_header">
    <td width="10"><input type="checkbox" name="checkbox" value="checkbox" onclick='checkedAll(this.checked);'></td>
	<td ><?php echo Kohana::lang('admin_lang.lbl_order')?></td>
    <td width="50"><?php echo Kohana::lang('admin_lang.lbl_order')?></td>
    <td width="50"><?php echo Kohana::lang('admin_lang.lbl_status')?></td>
    <td width="50">Top</td>
    <td width="80"><?php echo Kohana::lang('admin_lang.lbl_action')?></td>
  </tr>
  <?php for($i=0; $i<count($mlist); $i++){ ?>
  <tr class="row<?php echo $i%2==0?2:''?>">
    <td><input name="chk_id[]" type="checkbox" id="chk_id[]" value="<?php if(isset($mlist[$i]['clients_id'])) echo $mlist[$i]['clients_id']?>"></td>
    <td><?php if(isset($mlist[$i]['clients_name'])) echo $mlist[$i]['clients_name']?></td>
    <td align="center"><a href="<?php echo $this->site['base_url']?>admin_clients_global/edit/<?php if(isset($mlist[$i]['clients_id'])) echo $mlist[$i]['clients_id']?>"><?php if(isset($mlist[$i]['clients_sort_order'])) echo $mlist[$i]['clients_sort_order']?></a></td>
    <td align="center">
      <?php if(@$mlist[$i]['clients_status'] == 1){ ?>
      <a href="<?php echo $this->site['base_url']?>admin_clients_global/setstatus/<?php if(isset($mlist[$i]['clients_id'])) echo $mlist[$i]['clients_id']?>/0" >
        <img src="<?php echo $this->site['base_url']?>themes/admin/pics/icon_active.png" title="<?php echo Kohana::lang('admin_lang.lbl_active')?>" />        </a>
      <?php } else { ?>    
      <a href="<?php echo $this->site['base_url']?>admin_clients_global/setstatus/<?php if(isset($mlist[$i]['clients_id'])) echo $mlist[$i]['clients_id']?>/1" >
        <img src="<?php echo $this->site['base_url']?>themes/admin/pics/icon_inactive.png" title="<?php echo Kohana::lang('admin_lang.lbl_inactive')?>" />        </a>
      <?php } ?>    </td>
    <td align="center"><a href="<?php echo $this->site['base_url']?>admin_clients_global/top/<?php if(isset($mlist[$i]['clients_id'])) echo $mlist[$i]['clients_id']?>" >
        <img src="<?php echo $this->site['base_url']?>themes/admin/pics/top.png" title="Top" /> </a></td>
    <td align="center">
      <a href="<?php echo $this->site['base_url']?>admin_clients_global/edit/<?php if(isset($mlist[$i]['clients_id'])) echo $mlist[$i]['clients_id']?>">
        <img src="<?php echo $this->site['base_url']?>themes/admin/pics/icon_edit.png" title="<?php echo Kohana::lang('admin_lang.btn_edit')?>" />        </a>
      <a href="<?php echo $this->site['base_url']?>admin_clients_global/delete/<?php if(isset($mlist[$i]['clients_id'])) echo $mlist[$i]['clients_id']?>" onclick="return confirm('<?php echo Kohana::lang('errormsg_lang.msg_confirm_del')?>')">
        <img src="<?php echo $this->site['base_url']?>themes/admin/pics/icon_delete.png" title="<?php echo Kohana::lang('admin_lang.btn_delete')?>" />        </a>    </td>
  </tr>
  <?php } ?>
</table>
<table class="list_bottom" cellspacing="0" cellpadding="5">
  <tr>
    <td>
	<select name="sel_action" id="sel_action">
		<option value="block"><?php echo Kohana::lang('admin_lang.lbl_block_selected')?></option>
		<option value="active"><?php echo Kohana::lang('admin_lang.lbl_active_selected')?></option>
		<option value="delete"><?php echo Kohana::lang('admin_lang.lbl_delete_selected')?></option>
	</select>
    &nbsp;
	<button type="button" name="btn_update" class="button save" onclick="sm_frm(frmlist,'<?php echo $this->site['base_url']?>admin_clients_global/saveall','<?php echo Kohana::lang('errormsg_lang.msg_confirm_del')?>');"/>
    <span><?php echo Kohana::lang('admin_lang.btn_update')?></span>
    </button>
    </td>
  </tr>
</table>
</form>
<div class='pagination'><?php echo $this->pagination?></div>